package com.jz.controller;

import com.jz.module.dto.TShopDto;
import com.jz.service.ShopService;
import com.jz.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/shop")
public class ShopController {

    @Autowired
    private ShopService shopService;


    @RequestMapping("/page")
    public ResultUtil page(TShopDto dto) {
        return shopService.page(dto);
    }

    @RequestMapping("/query")
    public ResultUtil query(TShopDto dto) {
        return shopService.query(dto);
    }


    @RequestMapping("/save")
    public ResultUtil save(TShopDto dto) {
        return shopService.save(dto);
    }

    @RequestMapping("/delete")
    public ResultUtil delete(TShopDto dto) {
        return shopService.delete(dto);
    }

}
